package com.example.mp.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.alibaba.excel.enums.poi.FillPatternTypeEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;


@Data
@ToString
@TableName(value = "user")
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 6)
@HeadFontStyle(fontHeightInPoints = 14)
@ContentStyle(fillPatternType = FillPatternTypeEnum.LESS_DOTS, fillForegroundColor = 8)
@ContentFontStyle(fontHeightInPoints = 12)
public class UserEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty({"用户信息表", "编号ID"})
    private Integer id;

    @TableField(value = "name")
    @ExcelProperty({"用户信息表", "姓名"})
    private String name;

    @TableField(value = "passwd")
    @ExcelProperty({"用户信息表", "密码"})
    private String passwd;

    @TableField(value = "age")
    @ExcelProperty({"用户信息表", "年龄"})
    private String age;

    @TableField(value = "email")
    @ExcelProperty({"用户信息表", "Email"})
    private String email;

    @TableField(value = "description")
    @ExcelProperty({"用户信息表", "描述"})
    private String description;

}
